package com.sumainfor.pc.gmio.fallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.google.common.collect.Lists;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.gmio.feign.BaseFeignZuul;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/1/18 16:03
 * @Description:
 */
@Component
public class FeignZuulFallback implements BaseFeignZuul {

    @Override
    public JsonResult getUserMap(Map<String, Object> params) {
        return JsonResult.error("服务繁忙");
    }

    @Override
    public JsonResult getAllUserIdAndName() {
        return JsonResult.error("服务繁忙");
    }

    @Override
    public List<Map<String, Object>> getDeptList(Map<String, Object> params) {
        return new ArrayList<>();
    }

    @Override
    public List<Map<String, Object>> getPostDeptList(Map<String, Object> params) {
        return new ArrayList<>();
    }

    @Override
    public JsonResult getUserInfo(Collection<String> ids) {
        return JsonResult.error("服务繁忙");
    }

    @Override
    public Map<String, Object> getDataByTypeAndId(String id, Integer type) {
        return JsonResult.error("服务繁忙");
    }

    @Override
    public List<Map<String, Object>> getRecycleServiceCenter(List<String> ids) {
        return Lists.newArrayList();
    }

    @Override
    public JsonResult getAreaPayMap(Map<String, Object> params) {
        return JsonResult.error("服务繁忙");
    }

    @Override
    public Page<Map<String, Object>> selectGosList(Map<String, Object> page) {
        return null;
    }

    @Override
    public Page<Map<String, Object>> getCityListAll(Map<String, Object> page) {
        return null;
    }

    @Override
    public Page<Map<String, Object>> getCenterByCityId(Map<String, Object> params) {
        return null;
    }

    @Override
    public Map<String, Object> getAreaInfoById(Integer areaId) {
        return null;
    }

    @Override
    public JsonResult getMessageList(Map<String,Object> params, Pager pager){
        return JsonResult.error("服务器繁忙...");
   }

    @Override
    public List<Map<String, Object>> getAllAreaList() {
        return new ArrayList<Map<String, Object>>();
    }

    @Override
    public JsonResult getAreaid(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙");
    }

    @Override
    public Map<String, Object> getdeptname(Map<String, Object> params) {
        return new HashMap<>();
    }
}
